package main

import "fmt"

func main() {
	//switch
	println("switch的使用：")
	ChooseFruit("apple")
}

func ChooseFruit(fruit string) {
	switch fruit {
	case "Apple":
		fmt.Printf("I am an Apple")
	case "Banana":
		fmt.Printf("I am a Banana")
	case "Peach":
		fmt.Printf("I am a Peach")
	default:
		fmt.Printf("I dont know the %s", fruit)
	}
}
